<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/9
  Time: 14:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>


    <title>新建手表实体</title>
    <%@ include file="/common/include-core.jsp" %>
</head>
<body>
<article class="page-container">
    <form action="" method="post" class="form form-horizontal" id="form-productEntity-add" enctype="multipart/form-data">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"></label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="hidden" class="input-text" value="${productEntity.tid}" id="tid" name="tid"/>
            </div>
        </div>
        <div class="row cl">
        <label class="form-label col-xs-4 col-sm-3"></label>
        <div class="formControls col-xs-8 col-sm-9">
            <input type="hidden" class="input-text" value="${productEntity.productEntityId}" id="productEntityId" name="productEntityId"/>
        </div>
    </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">产品实体名称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${productEntity.productEntityName}" placeholder="" id="productEntityName" name="productEntityName">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"></label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="hidden" class="input-text" value="${productId}" id="productId" name="productId"/>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">产品简介：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${productEntity.productEntityIntro}" placeholder="" id="productEntityIntro" name="productEntityIntro">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">产品详情：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${productEntity.productEntityIntroduce}" placeholder="" id="productEntityIntroduce" name="productEntityIntroduce">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">单位：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${productEntity.unit}" placeholder="" id="unit" name="unit">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">价格：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${productEntity.price}" placeholder="" id="price" name="price">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">图片：</label>
            <div class="formControls col-xs-8 col-sm-9">

                <span class="btn-upload form-group">
                    <input class="input-text upload-url" type="text" name="photo" id="photo" readonly nullmsg="请添加图片！"
                           style="width:200px">
                    <a href="javascript:void(0);" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
                    <input type="file" multiple name="file" class="input-file">
				</span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">上线时间：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"
                       value="<fmt:formatDate value="${productEntity.onlineDate}" pattern="yyyy-MM-dd"/>"
                       placeholder="上线时间" id="onlineDate" name="onlineDate">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">下线时间：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"
                       value="<fmt:formatDate value="${productEntity.offlineDate}" pattern="yyyy-MM-dd"/>"
                       placeholder="结束时间" id="offlineDate" name="offlineDate">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">组织机构：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="region select radius input-text" name="organizationId">
                    <option value="0">秀才教育</option>
                    <c:forEach items="${organizationList}" var="item">
                        <option value="${item.tid}" ${item.tid==productEntity.organizationId?"selected":"" }>${item.name}</option>
                    </c:forEach>
                </select>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">状态：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="region select radius input-text" name="status">
                    <option value="1">有效</option>
                    <option value="0">无效</option>
                </select>
            </div>
        </div>





        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3" style="position:absolute; height:400px; overflow:auto">
                <button type="button" class="btn btn-success radius" id="productEntityAdd" name="admin-role-save"><i class="icon-ok"></i> 确定</button>
            </div>
        </div>
    </form>
</article>

<script type="text/javascript" src="/static/js/product/productAdd.js"></script>


<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
